import { NavLink, Route, Switch } from 'react-router-dom'
import Boy from './Boy'
import Girl from './Girl'
export default function Search() {
  return (
    <div>
      <p>搜索</p>
      <NavLink to="/search/girl">美女</NavLink> &nbsp;
      <NavLink to="/search/boy">帅哥</NavLink> &nbsp;
      <Switch>
        <Route path="/search/girl" component={Girl}></Route>
        <Route path="/search/boy" component={Boy}></Route>
      </Switch>
    </div>
  )
}
